#ifndef __COMPONENT_AUTO_JUMP_H__
#define __COMPONENT_AUTO_JUMP_H__

#include <vector>
#include "Components/Component.hpp"

namespace PocketSurvival
{
    struct ComponentCreature;

    struct ComponentAutoJump : public Component
    {
        ComponentCreature *componentCreature;
        double lastAutoJumpTime;
        bool alwayEnabled;
        float jumpStrength;
        bool collideWithBody;


        virtual void update(float dt) override;
        virtual const std::string &getName() const override;
        static const std::string &GetName();
        virtual void load(const nlohmann::json &jsonData) override;

    protected:
        
    };
    
} // namespace PocketSurvival

#endif
